configure.ac: properly check for bison
authorJonathan Lebon <jlebon@redhat.com>
Tue, 7 Jun 2016 19:08:16 +0000 (15:08 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 7 Jun 2016 19:47:58 +0000 (19:47 +0000)
The AC_PROG_YACC already does the checking for us, so we don't need to
use AC_CHECK_PROGS (which wasn't working anyway because autoconf didn't
run the check thinking it was cached already from the earlier
AC_PROC_YACC, so we didn't get the default ":" value)

Closes: #325
Approved by: cgwalters

configure.ac

index e5bd8c7e6639fafeefda7741abfe5d2c0fa54ab6..d1b732f71d8b5eacb5c4c6116de7d6ac463f6e9a 100644 (file)
@@ -38,8 +38,7 @@ GLIB_TESTS
 
 AC_CHECK_HEADER([sys/xattr.h],,[AC_MSG_ERROR([You must have sys/xattr.h from glibc])])
 
-AC_CHECK_PROGS(YACC, 'bison -y', :)
-AS_IF([test "$YACC" = :], [AC_MSG_ERROR([bison not found but required])])
+AS_IF([test "$YACC" != "bison -y"], [AC_MSG_ERROR([bison not found but required])])
 
 PKG_PROG_PKG_CONFIG